package com.xiaohe.service.impl;

import com.xiaohe.dao.UserDao;
import com.xiaohe.pojo.User;
import com.xiaohe.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能描述
 *
 * @author 和振斌
 * @date 2021/1/3
 * @return
 */
@Service(value = "userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll() {

        return userDao.findAll();
    }

    @Override
    public void create(User user) {
        System.out.println("增加一个用户信息");
    }
}
